TextInputStream.Encoding Property

Syntax

Encoding as TextEncoding


Specifies the encoding to be defined for a string returned by ReadLIne or ReadAll. It does not actually convert the bytes, but only assigns them an encoding, as if you had called DefineEncoding.

Use the Encoding object to specify the TextEncoding. It defaults to UTF-8, but you can assign it a different encoding to match your file, or even assign Nil if you want the string to have an undefined encoding.